-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Cache Conda env #47454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache Conda env #47454
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can
cache-downloads: true
be set? - Could you give an example before/after improvement in the setup?
Yes we can do it. I'm not sure it's worth it given that the total amount of data that can be cached per repository is 10 GB (https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy) and some of the envs are 0.5 GB large. |
Sure, here we have 2 min -> 0.5 min https://github.com/pandas-dev/pandas/runs/7000499676?check_suite_focus=true https://github.com/pandas-dev/pandas/runs/7007202415?check_suite_focus=true and here we have 4.5 min to 1.5 min https://github.com/pandas-dev/pandas/runs/6998916048?check_suite_focus=true https://github.com/pandas-dev/pandas/runs/7001171440?check_suite_focus=true In my experience env setup can be considerably slower if there are network problems. For example here we have 8 min, although I'm not sure how much of it is related to using Mamba instead of Micromama https://github.com/pandas-dev/pandas/runs/7028218282?check_suite_focus=true. |
I see. I would still be partial in trying it as I've noticed we sometimes still hit connection errors from conda although I extended the timeouts in the |
Thanks @jonashaag. These CI improvements are awesome! |
* Cache Conda env * python-version -> extra-specs * python-version -> extra-specs * Remove old broken conda caching * Add cache-downloads: true * Undo debug change
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.